﻿using Microsoft.AspNetCore.Mvc;
using PHMEE.DTOS.FleetMonitor;
using PHMEE.IServices.FleetMonitor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PHMEE.Controllers.FleetMonitor
{
    /// <summary>
    /// 船舶状态监测🚢🌞🌛✨
    /// </summary>
    [Route("api/fleetvesselmonitor")]
    public class FleetVesselMonitorController : PHMEEController
    {
        private readonly IFleetVesselMonitorAppService fleetVesselMonitorAppService;

        public FleetVesselMonitorController(IFleetVesselMonitorAppService fleetVesselMonitorAppService)
        {
            this.fleetVesselMonitorAppService = fleetVesselMonitorAppService;
        }


        /// <summary>
        /// 船队-获取船舶参数集合相关信息
        /// </summary>
        /// <param name="fleetId"></param>
        /// <returns></returns>
        [HttpGet]
        [Route("GetFleetVesselParams")]
        public async Task<List<FleetVesselModel>> GetFleetVesselParams(Guid? fleetId)
        {
            return await fleetVesselMonitorAppService.GetFleetVesselParams(fleetId);
        }


    }
}
